package com.ffdms.service;

import java.util.ArrayList;
import java.util.List;

import org.apache.http.message.BasicNameValuePair;

import android.content.Context;

import com.ffdms.util.HttpUtils;
import com.ffdms.vo.Staff;

public class StaffService extends AbstractClientService {

	public StaffService(Context context, Staff staff) {
		super(context, staff);
	}

	public Staff Login(String username, String pwd) {
		List<BasicNameValuePair> pairs = new ArrayList<BasicNameValuePair>();
		pairs.add(new BasicNameValuePair("username", username));
		pairs.add(new BasicNameValuePair("pwd", pwd));
		String json = HttpUtils.sendPostClient(this.URL, pairs);
		// parse json data
		return new Staff();
	}
}
